package Controleur;

import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import Vue.CreerPartieReseau;

public class CreerPartieReseauxChangeListener implements ChangeListener {

	private CreerPartieReseau fenetre;

	public CreerPartieReseauxChangeListener(CreerPartieReseau fenetre) {
		this.fenetre = fenetre;
	}

	@Override
	public void stateChanged(ChangeEvent arg0) {
		JSlider silder = (JSlider) arg0.getSource();
		System.out.println(silder.getValue());
		fenetre.initPanelChoixPuissances(silder.getValue());
		fenetre.validate();
		fenetre.repaint();

	}

}
